//
//  ViewController.m
//  UIButton的图片文字扩展
//
//  Created by LH on 17/3/20.
//  Copyright © 2017年 LH. All rights reserved.
//

#import "ViewController.h"
#import "LHUIButton.h"
@interface ViewController ()
@property (weak, nonatomic) IBOutlet UIButton *jump;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    LHUIButton *button = [LHUIButton buttonWithType:UIButtonTypeCustom];//button的类型
    button.frame = CGRectMake(100, 100,100,100);//button的frame
    button.backgroundColor = [UIColor clearColor];//button的背景颜色
    //button_cart
    [button lh_setImage:@"ic_plus_h" butTitle:@"首页" types:Top];
    [self.view addSubview:button];
    
    LHUIButton *button1 = [LHUIButton buttonWithType:UIButtonTypeCustom];//button的类型
    button1.frame = CGRectMake(100, 250,100,100);//button的frame
    button1.backgroundColor = [UIColor clearColor];//button的背景颜色
    //button_cart@2x
    [button1 lh_setImage:@"button_cart" butTitle:@"首页" types:Left];
    [self.view addSubview:button1];
    
    LHUIButton *button2 = [LHUIButton buttonWithType:UIButtonTypeCustom];//button的类型
    button2.frame = CGRectMake(100, 400,100,100);//button的frame
    button2.backgroundColor = [UIColor clearColor];//button的背景颜色
    //button_cart@2x
    [button2 lh_setImage:@"ic_plus_h" butTitle:@"首页" types:Right];
    [self.view addSubview:button2];
    
    
    LHUIButton *button3 = [LHUIButton buttonWithType:UIButtonTypeCustom];//button的类型
    button3.frame = CGRectMake(250, 400,100,100);//button的frame
    button3.backgroundColor = [UIColor clearColor];//button的背景颜色
    //button_cart@2x
    [button3 lh_setImage:@"ic_plus_h" butTitle:@"首页" types:Bottom];
    [self.view addSubview:button3];
    
}
- (IBAction)jump:(UIButton *)sender {
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
